package org.artifact.protocol;
import cn.hutool.core.util.ArrayUtil;
import lombok.Data;

@Data
public class ProtocolType {
	private String type;
	private String[] generics = {};
	
	// 取得完整类型
	public String getIntact(){
		if (ArrayUtil.isEmpty(generics)) {
			return type;
		}
		return type + ArrayUtil.toString(generics).replace("[", "<").replace("]", ">");
	}
}
